package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.FoodsInfo;
import com.itheima.pojo.SportsInfo;

import java.util.List;

public interface KnowledgeBaseDao {
    Page<FoodsInfo> selectByCondition(String queryString);

    void addSportInfo(SportsInfo sportsInfo);

    void addFoodInfo(FoodsInfo foodsInfo);

    FoodsInfo findFoodById(Integer id);

    void edit(FoodsInfo foodsInfo);

    void deleteById(Integer id);

    void add(FoodsInfo foodsInfo);

    SportsInfo selectSportById(Integer id);

    Page<FoodsInfo> selectByCondition1(String queryString);

    void addSport(SportsInfo sportsInfo);

    void editSport(SportsInfo sportsInfo);

    void deleteSport(Integer id);
}
